package zelix.value;

import zelix.hack.hacks.ClickGui;

public class Value<T> {

    public T value;

    private String name;
    public static String chinese;
    private T defaultValue;

    public Value(String name, T defaultValue) {

        this.name = name;
        this.defaultValue = defaultValue;
        this.value = defaultValue;
    }

    public String getName() {

        return name;
    }

    public String getRenderName() {

        if (chinese != null && ClickGui.language.getMode("Chinese").isToggled()){

            return chinese;
        }


        return name;
    }

    public void setCNName(String cnName){
        this.chinese = cnName;

    }

    public T getDefaultValue() {

        return defaultValue;
    }

    public T getValue() {

        return value;
    }

    public void setValue(T value) {

        this.value = value;
    }
}
